export function generateId(): string {
    const timestamp = Date.now().toString(36);
    const array = new Uint8Array(8);
    crypto.getRandomValues(array);
    const randomness = Array.from(array)
        .map(b => b.toString(16).padStart(2, '0'))
        .join('');
    return `${timestamp}-${randomness}`;
} 